<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'users.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/click.js"></script>
</head>

<body class="gray-bg">
	<s:if test="#session.userTextsAll!=null">
		<table class="gray-bg">
			<tr>
				<td width="50px">信息ID</td>
				<td width="50px">发布者</td>
				<td width="70px">接收者ID</td>
				<td width="40px">类型</td>
				<td width="200px">信息内容</td>
				<td width="100px">照片</td>
				<td width="140px">发布时间</td>
				<td width="140px">截至时间</td>
				<td width="70px">信用值</td>
				<td width="70px">状态</td>
				<td>操作</td>
			</tr>
			<s:iterator value="#session.userTextsAll">
				<tr>
					<td><s:property value="textId" />
					</td>
					<td><s:property value="userByUserSendId.userName" />
					</td>
					<td><s:property value="userByUserCatchId" />
					</td>
					<td><s:property value="type.typeId" />
					</td>
					<td><s:property value="text" />
					</td>
					<td><s:property value="image" />
					</td>
					<td><fmt:formatDate value="${sendDate}" pattern="yyyy-MM-dd HH:mm" />
					</td>
					<td><fmt:formatDate value="${limitDate}" pattern="yyyy-MM-dd HH:mm" />
					</td>
					<td><s:property value="transPoint" />
					</td>
					<td>
					<s:if test="tag==0">普通</s:if>
					<s:if test="tag==1">用户接收</s:if>
					<s:if test="tag==2">商家接收</s:if>
					<s:if test="tag==3">完成</s:if>
					<s:if test="tag==4">失效</s:if>
					</td>
					<td><a class="delete" href="usertext_deleteTextByAdmin?id=${textId}">删除</a>
					</td>
				</tr>
			</s:iterator>
		</table>
	</s:if>
</body>
</html>
